export interface FeeTable {
     code: string;
     msg: string;
     timestamp: number;
     data: Array<FeeTableInfo>;
     ok: boolean;
};

export interface FeeTableInfo {
     orderId: number;
     orderNo: string;
     waitingCount?: number;
     visitNo: string;
     
     patientId: number;
     patientName: string;
     patientGender: string;
     payStatus: string;
     orderTime: Date;
     totalAmount: number;
};


export interface FeeDetail {
     code: string;
     msg: string;
     timestamp: number;
     data: FeeDetailData;
     ok: boolean;
};

export interface FeeDetailData {
     orderId: number;
     orderNo: string;
     visitNo: string;
     patientId: number;
     patientName: string;
     patientGender: string;
     subtotal:string;
     payStatus: string;
     orderTime: Date;
     totalAmount: number;
     patientPhone: string;
     ageYear: number;
     ageMonth: number;
     payTime?: any;
     itemList: Array<ItemList>;
};

export interface ItemList {
     itemId: number;
     itemType: string;
     orderUserId: number;
     orderBy: string;
     deptId: number;
     deptName: string;
     orderTime: Date;
     orderId: number;
     itemRefId: number;
     itemRefName: string;
     payStatus: string;
     payChannel?: any;
     chargeUserId?: any;
     chargeBy?: any;
     chargeTime?: any;
     subtotal: number;
     detailList: Array<DetailList>;
};

export interface DetailList {
     detailId: number;
     detailName: string;
     price: number;
     totalOutQty: number;
     totalOutQtyUnit: string;
     totalOutQtyUnitText: string;
     subtotal: number;
};

